const Sequelize = require('sequelize')
let db = require('../config/db')


let Links = db.define('links',{
    id:{
        type: Sequelize.INTEGER,
        primaryKey:true,
        autoIncrement: true,
        comment: "主键，自增"
    },
    uid:{
        type:Sequelize.INTEGER
    },
    links:{
        type:Sequelize.STRING,
    },
    remark:{
        type:Sequelize.STRING,
    },

    isDel:{
        type: Sequelize.INTEGER,
        defaultValue:0,
        comment:'状态，是否删除'
    }
},{
    freezeTableName:true,
    paranoid:true,
    timestamps:true
})
let links = Links.sync();

module.exports = Links
